{# /StudX_dir/StudX/student/templates/student/student_list.html #}

{% extends 'dashboard_base.html' %}
{% load static i18n %}

{% block title %}Student {% endblock %}

{% block content %}

<div class="card">  
{% include 'student/student_list_filter.html' %} 
	<div class="card-body"> 
		{% if student_obj_list|length == 0 %}
			<div class="alert alert-secondary" role="alert">
				{% trans "No student found" %}
			</div>
		{% else %}

			<table class="table table-responsive-sm table-hover table-outline" id="StudentdataTable" cellspacing="0">
				<thead>
					<tr>
						<th class="nosort text-center "><i class="fas fa-user-friends"></i></th>
						<th>{% trans "Student ID" %}</th>
						<th>{% trans "Firstname" %}</th>
						<th>{% trans "Lastname" %}</th>
						<th>{% trans "Classe" %}</th>
						<th class="nosort">Action</th>
					</tr>
				</thead>
				<tbody>
			{% for student in student_obj_list %}
				{% include 'student/student_item_list.html' %}
			{% endfor %}
				</tbody>
					<tr></tr>
				<tfoot></tfoot>
			</table>

		{% endif %}
	</div>
</div>

{% endblock %}

{% block extra_js %}
<script src="{% static 'js/datatables/datatables.js' %}"></script>
{% endblock extra_js %}